﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using EnheimGallery.DAL;
namespace EnheimGallery.Models.StatisticsModel
{
    public class PhotoStatisticsViewModel
    {
        public string Name { get; set; }
        public string CategoryName { get; set; }
        public string OwnerUser { get; set; }
        public string AddedDate { get; set; }
        public string LastSeen { get; set; }
        public string Dimensions { get; set; }
        public int FileSize { get; set; }

        public PhotoStatisticsViewModel(PhotoStatsData photodata)
        {
            this.Name = photodata.Name;
            this.CategoryName = photodata.CategoryName;
            this.AddedDate = photodata.AddedDate.ToShortDateString();
            this.LastSeen = photodata.LastSeen.ToShortDateString();
            this.OwnerUser = photodata.OwnerUser;
            this.FileSize = photodata.FileSize;
            this.Dimensions = photodata.Width.ToString() + "X" + photodata.Height.ToString();
           
           
        }
    }
}